package com.sc.nft.controller.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class GiveMetaWalletRequest {

    @ApiModelProperty("交易密码")
    @NotBlank(message = "交易密码不能为空")
    private String transactionPassword;

    @ApiModelProperty("目标地址")
    @NotNull(message = "目标地址不能为空")
    private String userAddr;

    @ApiModelProperty("用户藏品表ids")
    @NotEmpty(message = "用户藏品表ids不能为空")
    @Size(max = 10,message = "一次最多转增10个")
    private List<Long> userCollectionIds;

    @ApiModelProperty("藏品id")
    @NotNull(message = "藏品id不能为空")
    private Long collectionId;


    @ApiModelProperty(value = "消耗类型 1.星球碎片 2.余额 3.生态燃料")
    @NotNull(message = "消耗类型不能为空")
    @Range(min = 1, max = 3, message = "消耗类型只能为星球碎片,余额,生态燃料")
    private Integer consumeType;

}
